#! /bin/bash



## 生成私钥
openssl genras > cert.key
## 生成证书
openssl req -new -x509 -key cert.key >  cert.pem



upstrean web{
    server 192.168.203.12 weight=1 max_failds=3 fail_timeout=30;
    server 192.168.203.16 down;
}
 server {
        listen       90;
        server_name  web1.test.com;
#       auth_basic   "input Password";
#       auth_basic_user_file "/etc/nginx/pass";
#        root         /var/www/html;
        # 重定向  direct 临时  permament 永久  last   break 结束请求 
        rewrite  ^/(.*)  https://www.baidu.com?s=$1;
        error_page 404 /404.html;
#       location = /{
#         root html;
#         index index.html index.htm;
#       }

}
